package org.dromara.wmscloud.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.annotation.DataColumn;
import org.dromara.common.mybatis.annotation.DataPermission;
import org.dromara.wmscloud.domain.BaseUnit;
import org.dromara.wmscloud.domain.vo.BaseUnitVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.wmscloud.domain.vo.BaseWarehouseVo;

import java.util.List;
import java.util.Set;

/**
 * 物料单位Mapper接口
 *
 * @author hou
 * @date 2025-04-04
 */
@Mapper
public interface BaseUnitMapper extends BaseMapperPlus<BaseUnit, BaseUnitVo> {
//    @DataPermission({
//        @DataColumn(key = "deptName", value = "dept_id"),
//        @DataColumn(key = "userName", value = "user_id")
//    })
    List<BaseUnitVo> selectPrimaryNamesByIds(@Param("baseUnitIds") Set<Long> primaryUnitIds);
}
